home *** CD-ROM | disk | FTP | other *** search
- Path: news.uni-ulm.de!news
- From: gutmann@informatik.uni-ulm.de (Jens-Steffen Gutmann)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: slink V6.56 problem
- Date: 18 Jan 1996 12:36:39 GMT
- Organization: University of Ulm, Germany
- Message-ID: <4dlesn$hq9@oracle.rz.uni-ulm.de>
- References: <4deus2$nm5@castle.nando.net>
- Reply-To: gutmann@informatik.uni-ulm.de
- NNTP-Posting-Host: gaius.informatik.uni-ulm.de
-
- In article <4deus2$nm5@castle.nando.net>, sekruege@nando.net (Steve Krueger) writes:
- >In article <4ddhlk$hms@oracle.rz.uni-ulm.de> gutmann@informatik.uni-ulm.de (Jens-Steffen Gutmann) writes:
- >: Slink V6.56 seems to have problems when linking large object files.
- >: I noticed it when trying to recompile the gnuplot source code.
- >: Here is some code to produce a large source file:
- >:
- [...]
- >: --------------------------------------------------------------------------
- >: Home:Prog/problems/linker > sc link linkprob.c
- >: SAS/C Amiga Compiler 6.55
- >: Copyright (c) 1988-1995 SAS Institute Inc.
- >: ***Can't open GST file "include:all.gst" for read
- >: Slink - Version 6.55
- >: Copyright (c) 1988-1995 SAS Institute, Inc. All Rights Reserved.
- >:
- >:
- >: SLINK Complete - Maximum code size = 85128 ($00014c88) bytes
- >:
- >: Final output file size = 101192 ($00018b48) bytes
- >: --------------------------------------------------------------------------
- >: >
- >You will notice the waring in the 6.55 compile saying that it can't
- >find all.gst. That's the key.
- >
- >The file ALL.GST is compiled with CODE=NEAR (the default). Therefore,
- >the function printf() gets NEAR associated with it. Adding CODE=FAR
- >to the compile line will not change the call to anything in ALL.GST.
- >
- >Therefore, you either need to make a new GST for CODE=FAR, or don't
- >use the GST for CODE=FAR.
-
- Thanks! I have removed the GST line from SCOPTIONS and now it works.
-
- Another question: Why does slink work when I split the large
- source file into pieces, compile each and link all together?
-
- Regards
- Steffen
-
- --
- Steffen Gutmann
- gutmann@informatik.uni-ulm.de
-
-
-